﻿using System;

// Token: 0x020001B4 RID: 436
public class CutAct_BGM : CutAction
{
	// Token: 0x06000B57 RID: 2903 RVA: 0x000425A0 File Offset: 0x000407A0
	public CutAct_BGM(CutScene cutScene) : base(cutScene, CUTACT.BGM)
	{
	}

	// Token: 0x06000B58 RID: 2904 RVA: 0x000425AC File Offset: 0x000407AC
	public override object Clone()
	{
		return new CutAct_BGM(this.cutScene);
	}

	// Token: 0x06000B59 RID: 2905 RVA: 0x000425BC File Offset: 0x000407BC
	public override void Load(TagText.Element element, int order)
	{
		base.Load(element, order);
		this.file = TagTextUtility.Load_String(element, "file", 0);
		TagTextUtility.Load_Bool(ref this.play, element, "play", 0);
	}

	// Token: 0x06000B5A RID: 2906 RVA: 0x000425EC File Offset: 0x000407EC
	public override void Save(TagText.Element element)
	{
		base.Save(element);
		element.AddAttribute("file", this.file);
		element.AddAttribute("play", this.play.ToString());
	}

	// Token: 0x06000B5B RID: 2907 RVA: 0x00042624 File Offset: 0x00040824
	public override void Action(bool skip)
	{
		if (this.file != null && this.file.Length > 0)
		{
			this.cutScene.GC.audioCtrl.BGM_Load(this.file);
		}
		if (!this.play)
		{
			this.cutScene.GC.audioCtrl.BGM_Stop();
		}
		else
		{
			this.cutScene.GC.audioCtrl.BGM_Play();
		}
	}

	// Token: 0x04000BA1 RID: 2977
	private string file;

	// Token: 0x04000BA2 RID: 2978
	private bool play;
}
